package com.center.growcenterserver.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/*
这段代码是一个 Spring Boot 配置类，用于启用 WebSocket 功能。
 */

@Configuration
public class WebSocketConfig {
    @Bean
    public ServerEndpointExporter serverEndPointExporter(){
        return  new ServerEndpointExporter();
    }
}
